﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Cm.Web.Controllers
{
    public class FormController : Controller
    {
        //
        // GET: /Form/
        [HttpGet]
        public ActionResult Index()
        {
            return View();
        }
        [HttpPost]
        public ActionResult Index(string name)
        {

            return Json(new { ok = true, name = name });
        }
    }
}
